package com.dq.Week1.day01;

import java.util.Scanner;

public class calculateTriangleArea {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入三角形的长：");
        int length = scanner.nextInt();
        System.out.print("请输入三角形的宽：");
        int width = scanner.nextInt();
        double area = (double)(length*width)/2;
        System.out.println("三角形的面积为："+area);
    }
}
